package com.wxm.jsoup.base;

/**
 * <p>
 *      Selector包装容器
 * </p>
 *
 * @author: wxm
 * @Date: 2021/9/28
 */
public class SelectorContainer {


    public static enum SelectorEnum{
        TAG(1,"tag 具有给定标签名称的元素 div","div"),
        ID(2,"#id 属性 ID 为“id”的元素","div#wrap, #logo"),
        CLASS(3,".class 类名为“class”的元素","div.left, .result"),
        ATTR(4,"[attr] 具有名为“attr”的属性（具有任何值）的元素","a[href], [title]"),
        ATTR_PREFIX(5,"[^attrPrefix] 具有以“attrPrefix”开头的属性名称的元素。用于查找具有 HTML5 数据集的元素","[^data-], div[^data-]"),
        ATTR_EQ_ONE(6,"[attr=val] 具有名为“attr”的属性且值等于“val”的元素","img[width=500], a[rel=nofollow]"),
        ATTR_EQ_TWO(7,"[attr=\"val\"] \t具有名为“attr”的属性且值等于“val”的元素","\tspan[hello=\"Cleveland\"][goodbye=\"Columbus\"], a[rel=\"nofollow\"]"),
        ;

        public Integer type;
        public String explain;
        public String remark;

        SelectorEnum(Integer type,String remark,String explain){
            this.type = type;
            this.remark = remark;
            this.explain = explain;
        }
    }
}
